package com.lebang.common.validcode;

/**
 * @Author: hwq
 * @Date: 2019/5/17 14:17
 * @Version 1.0
 ***用户登录相关redis储存用户登录相关key名
 */
public  enum RedisLogin {

    PHONE_NEW_LOGIN_CODE("phone:PHONE_NEW_LOGIN_CODE:",2),
    /**
     * 忘记密码时使用的验证码
     **/
    PHONE_FORGET_CODE("phone:ForgetCode:",1),
    /**
     * 登录时使用验证码
     **/
    PHONE_LOGIN_CODE("phone:LoginCode:",2),
    /**
     * 手机注册时使用验证码
     **/
    PHONE_REGISTER_CODE("phone:RegisterCode:",3),
    /**
     * 图片验证码
     **/
    IMEI_CODE("imeiCode:",4),
    /**
     * 用户token
     **/
    USER_TOKEN("userToken:",5),
    /**
     * 过客最新数据
     **/
    PASSING("passing",6),
    /**
     * 更换手机号码
     **/
    PHONE_EDIT_PHONE_CODE("phone:editPhoneCode",7);

    private String name;

    private Integer index;

    RedisLogin(String name, int index) {
        this.name=name;
        this.index=index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }}
